﻿--[[
   @brief    游戏banner上的菜单
   @author   rickonzhang
   @version  1.0
   @date     2015-04-01
--]]

game_menue_desc =
{
    module_name = 'game_menue',
    events = 
    {
        {
            c_event = 
            {
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_LOGIN_SUB_ACCOUNT_SUCCESS,
                    callback = 'game_menue_control.on_sub_account_login_success'
                },
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_DELETE_SUB_ACCOUNT_RESULT,
                    callback = 'game_menue_control.on_sub_account_del_ret'
                },
            },
            lua_event = 
            {
                {
                    id  = game_menue_event.OPEN_GAME_MENUE,
                    callback = "game_menue_control.open_game_menue"
                },
                {
                    id  = game_menue_event.HIDE_GAME_MENUE,
                    callback = "game_menue_control.hide_game_menue"
                },
                {
                    id = game_menue_event.OPEN_GAME_COMMUNITY,
                    callback = "game_menue_control.open_game_community"
                },
                {
                    id  = mult_account_event.MULT_ACCOUNT_SWITCH_ACCOUNT_LIST_DLG,
                    callback = "game_menue_control.on_switch_account_list_dlg"
                },
                {
                    id  = banner_event.FOCUS_BANNER_ITEM,
                    callback = "game_menue_control.on_banner_focus_change"
                },
                {
                    id  = mainframe_event.CHANGE_MAINFRAME_MODE,
                    callback = "game_menue_control.on_mainframe_mode_change"
                },
            },
            lua_file = "game_menue\\control.lua"
        }
    }
};
desc_mgr.add(game_menue_desc);